package com.ldn.common.basic.dispose.exception;

/**
 * 自定义异常类用于系统内部异常问题手动抛出问题
 *
 * @author 李大牛家的牛 (scafel@163.com)
 * @product serverless
 * @className AppException
 * @createDate 2025/1/13 - 13:18
 * @description 自定义异常类用于系统内部异常问题手动抛出问题
 **/

public class AppException extends RuntimeException {

  private final int code;

  public AppException(String message) {
    super(message);
    this.code = -1;
  }

  public AppException(int code, String message) {
    super(message);
    this.code = code;
  }


  public int getCode() {
    return code;
  }
}
